package cn.koala.key.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@ApiModel(value="出库详情")
public class LeaveStockDetail {
    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    private Long id;

    /**
     * 入库单号
     */
    @ApiModelProperty("入库单号")
    @NotNull(message="order_no参数不能为空")
    private String orderNo;

    /**
     * 钥匙二维码
     */
    @ApiModelProperty("钥匙二维码")
    @NotNull(message="key_bar_code参数不能为空")
    private String keyBarCode;

    /**
     * 仓库位置
     */
    @ApiModelProperty("仓库位置")
    @NotNull(message="warehouse_location参数不能为空")
    @Size(max=12,min=0,message="warehouse_location长度超过")
    private String warehouseLocation;

    /**
     * 是否出库 0-未出库1-已出库
     */
    @ApiModelProperty("是否出库 0-未出库1-已出库")
    @NotNull(message="is_storage参数不能为空")
    private Integer isStorage;

    /**
     * 是否删除
     */
    @ApiModelProperty("是否删除")
    @NotNull(message="is_deleted参数不能为空")
    private Integer isDeleted;

    /**
     * 主动创建时间
     */
    @ApiModelProperty("主动创建时间")
    @NotNull(message="gmt_create参数不能为空")
    private Date gmtCreate;

    /**
     * 被动更新时间
     */
    @ApiModelProperty("被动更新时间")
    @NotNull(message="gmt_modified参数不能为空")
    private Date gmtModified;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getKeyBarCode() {
        return keyBarCode;
    }

    public void setKeyBarCode(String keyBarCode) {
        this.keyBarCode = keyBarCode;
    }

    public String getWarehouseLocation() {
        return warehouseLocation;
    }

    public void setWarehouseLocation(String warehouseLocation) {
        this.warehouseLocation = warehouseLocation;
    }

    public Integer getIsStorage() {
        return isStorage;
    }

    public void setIsStorage(Integer isStorage) {
        this.isStorage = isStorage;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}